<?php 
$list = $this->data;
if($list){
?>
			<?php 			
			foreach ($list as $key => $value) {
				
		//		echo "<tr id='".$value['id']."'>";
				echo "<td align='center'>".$value['name']."</td>";
				echo "<td align='center'>".$value['description']."</td>";
				echo "<td align='center'><img src='/images/adminbase/edit.png' width=32 height=32 onclick='showFormEdit(".$value['id'].")'></td>";
				echo "<td align='center'><img src='/images/adminbase/delete.png' width=32 height=32 onclick='delete_menu(".$value['id'].")'></td>";
				?>
				<td align='center'> <?php if($value['status'] == 1) echo "<button type='button' class='btn btn-primary'  onclick=edit_status_menu(".$value['id'].",".$value['status'].") id='ma".$value['id']."'>ON</button>";
				                              else echo "<button type='button' class='btn btn-danger'  onclick=edit_status_menu(".$value['id'].",".$value['status'].") id='ma".$value['id']."'>OFF</button>"; ?>
				 </td>
				<?php 
			//	echo "</tr>";
			}
			?> 
</form>
<?php 
}
?>